package com.chinasoft.class1.group1;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class YeJiaYi implements TrueWord{
    List<String> wordList = new ArrayList<String>();

    public YeJiaYi() {
        wordList.add("今天用Java ！");
        wordList.add("明天用Python ！");
        wordList.add("后天用C++ ！");
    }


    public String getName() {
        return "叶嘉怡";
    }

    public String getWord() {
        Random random = new Random();
        int index = random.nextInt(wordList.size());
        return this.wordList.get(index);
    }
}
